package api

import (
	"github.com/gin-gonic/gin"
	"soul/api/handler"
)

func Soul(r *gin.Engine) {
	api := r.Group("./api")
	{
		user := api.Group("/user")
		{
			user.POST("/login", handler.Login)
			user.POST("/sendSms", handler.SendSms)
		}
		barrage := api.Group("/barrage")
		{
			barrage.POST("/create", handler.BarrageCreate)
		}
		dynamic := api.Group("/dynamic")
		{
			dynamic.POST("/create", handler.DynamicCreate)
			dynamic.POST("/find", handler.DynamicFind)
		}
		chat := api.Group("/chat")
		{
			chat.POST("/chats", handler.Chat)
		}
	}
}
